﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<FeedBack.Models.Contact>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Recent Comments</h2>

 

    <% foreach (var item in Model) { %>
     
       <h4>From: </h4> 
            <%: item.FirstName %>
            <%: item.LastName %>

       <h4>Email </h4>
            <%: item.Email %>

      <h4>Comment:(48 characters)</h4>
            <%: item.Comments %>
      <p>
            <%: Html.ActionLink("Delete Comments", "Delete", new { id = item.MemberID })%>
      </p>
      <hr />
       
    <% } %>

    

    <p>
        <%: Html.ActionLink("Create New", "Create") %>

    </p>

</asp:Content>

